package com.appbee.gdata.picasa.client;

import javax.inject.Inject;
import javax.inject.Provider;

import com.appbee.gdata.picasa.shared.PicasaRequestFactory;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;

public class PicasaRequestFactoryProvider implements
		Provider<PicasaRequestFactory>
{
	private final PicasaRequestFactory rf = GWT
			.create(PicasaRequestFactory.class);
	@Inject
	public PicasaRequestFactoryProvider(EventBus eventBus)
	{
		rf.initialize(eventBus);
	}
	
	@Override
	public PicasaRequestFactory get()
	{
		return rf;
	}

}
